package com.my.test.java.two.moredata.datas.share;

import java.sql.Connection;
import java.util.List;
import java.util.Map;

import com.my.test.java.two.moredata.datas.rule.DataSourceAg;
import com.my.test.java.two.moredata.datas.rule.TableRuleAg;

public class ShardeContext {

	private TableRuleAg tableRule;
	private DataSourceAg dataSourceAg;
	private String sql;
	private Map<String,Connection> map;
	private List<Object> params;
	
	public ShardeContext(){}
	public ShardeContext(TableRuleAg tableRule,DataSourceAg dataSourceAg,String sql,
			Map<String,Connection> map,List<Object> params){
		this.tableRule = tableRule;
		this.dataSourceAg = dataSourceAg;
		this.sql = sql;
		this.map = map;
		this.params = params;
	}
	public TableRuleAg getTableRule() {
		return tableRule;
	}
	public void setTableRule(TableRuleAg tableRule) {
		this.tableRule = tableRule;
	}
	public DataSourceAg getDataSourceAg() {
		return dataSourceAg;
	}
	public void setDataSourceAg(DataSourceAg dataSourceAg) {
		this.dataSourceAg = dataSourceAg;
	}
	public String getSql() {
		return sql;
	}
	public void setSql(String sql) {
		this.sql = sql;
	}
	public Map<String, Connection> getMap() {
		return map;
	}
	public void setMap(Map<String, Connection> map) {
		this.map = map;
	}
	public List<Object> getParams() {
		return params;
	}
	public void setParams(List<Object> params) {
		this.params = params;
	}
}
